package org.neuedu.chapter10_0702.demo03;

import java.util.ArrayList;
import java.util.List;

public class ListDemo01 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("hello1");
        list.add("hello2");
        list.add("hello3");
        list.add("hello4");
        list.add("hello5");
        list.clear();

        System.out.println(list.get(0));
        System.out.println(list.size());
        System.out.println(list.isEmpty());
        System.out.println(list.indexOf("hello2"));
        System.out.println(list.contains("hello1"));
    }
}
